package com.joker.orange.domain.bo;

import com.joker.common.core.domain.BaseEntity;
import com.joker.common.core.validate.AddGroup;
import com.joker.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.math.BigDecimal;

/**
 * 视频信息业务对象 t_video_info
 *
 * @author Joker
 * @date 2024-06-09
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class VideoInfoBo extends BaseEntity {

    /**
     * 唯一标识
     */
    @NotNull(message = "唯一标识不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 分类ID
     */
    @NotNull(message = "分类ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long categoryId;

    /**
     * 短视频用户ID
     */
    private Long shortVideoUserId;

    /**
     * 视频类型（0-网格视频、1-短视频、2-动漫）
     */
    @NotBlank(message = "视频类型（0-网格视频、1-短视频、2-动漫）不能为空", groups = { AddGroup.class, EditGroup.class })
    private String videoType;

    /**
     * 视频地址
     */
    @NotBlank(message = "视频地址不能为空", groups = { AddGroup.class, EditGroup.class })
    private String videoUrl;

    /**
     * 视频封面
     */
    @NotBlank(message = "视频封面不能为空", groups = { AddGroup.class, EditGroup.class })
    private String videoCover;

    /**
     * 视频名称
     */
    @NotBlank(message = "视频名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String videoName;

    /**
     * 视频时长
     */
    @NotNull(message = "视频时长不能为空", groups = { AddGroup.class, EditGroup.class })
    private BigDecimal videoTime;

    /**
     * 点赞数量
     */
    @NotNull(message = "点赞数量不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer likeNum;

    /**
     * 收藏数量
     */
    @NotNull(message = "收藏数量不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer collectNum;

    /**
     * 浏览数量
     */
    @NotNull(message = "浏览数量不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer lookNum;

    /**
     * 评论数量
     */
    private Integer commentNum;

    /**
     * 下载数量
     */
    private Integer downloadNum;

    /**
     * 分享数量
     */
    private Integer shareNum;

    /**
     * 收费类型（0-免费看、1-VIP可看、2-钻石观看）
     */
    @NotBlank(message = "收费类型（0-免费看、1-VIP可看、2-钻石观看）不能为空", groups = { AddGroup.class, EditGroup.class })
    private String chargeType;

    /**
     * 消耗钻石
     */
    @NotNull(message = "消耗钻石不能为空", groups = { AddGroup.class, EditGroup.class })
    private BigDecimal consumeDiamond;

    /**
     * 视频标签
     */
    @NotBlank(message = "视频标签不能为空", groups = { AddGroup.class, EditGroup.class })
    private String videoLabel;

    /**
     * 是否置顶（0-是、1-否）
     */
    @NotBlank(message = "是否置顶（0-是、1-否）不能为空", groups = { AddGroup.class, EditGroup.class })
    private String isTop;

    /**
     * 备注
     */
    private String remark;

    /**
     * 分页大小
     */
    private Integer pageSize;

    /**
     * 当前页数
     */
    private Integer pageNum;

    private Long[] videoIds;

}
